<?php
setlocale(LC_ALL, 'zh_CN.utf-8');
header("Content-Type:text/html;charset=utf-8");

require_once 'class/cate.class.php';


$cateClass= new cateClass();

$total=$cateClass->getCount();


//$row = mysql_fetch_row($rs);  
$data["total"] = $total;  

$items = $cateClass->getAll();
$data["rows"] = $items;   
$json= json_encode($items); 
echo $json; 
?>